/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmHome.java
 *
 * Created on Jan 25, 2012, 2:38:42 PM
 */

package SIMRS.Kasir.view;

import java.awt.Dimension;
import java.awt.Toolkit;
import javax.swing.JOptionPane;
import usu.widget.Form;

/**
 *
 * @author Joe
 */
public class frmHome extends Form {

    /** Creates new form frmHome */
    public frmHome() {
        initComponents();
        setIconImage(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/icon.png")).getImage());
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnlHome1 = new SIMRS.Kasir.widget.PnlHome();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem1 = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JPopupMenu.Separator();
        jMenuItem3 = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        jMenuItem6 = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jMenuItem8 = new javax.swing.JMenuItem();
        jMenuItem9 = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenuItem5 = new javax.swing.JMenuItem();

        setTitle(".:: RSIA Buah Hati");
        setAnimationHide(usu.widget.constan.Animation.HIDE_TO_TOP);
        setAnimationShow(usu.widget.constan.Animation.SHOW_FROM_BOTTOM);
        addWindowListener(new java.awt.event.WindowAdapter() {
            public void windowActivated(java.awt.event.WindowEvent evt) {
                formWindowActivated(evt);
            }
        });
        getContentPane().add(pnlHome1, java.awt.BorderLayout.CENTER);

        jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/File.png"))); // NOI18N
        jMenu1.setText("File");

        jMenuItem1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/bt_login.png"))); // NOI18N
        jMenuItem1.setText("Login");
        jMenu1.add(jMenuItem1);

        jMenuItem2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/mn_logout.png"))); // NOI18N
        jMenuItem2.setText("Logout");
        jMenu1.add(jMenuItem2);
        jMenu1.add(jSeparator1);

        jMenuItem3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/mn_exit.png"))); // NOI18N
        jMenuItem3.setText("Keluar");
        jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem3ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem3);

        jMenuBar1.add(jMenu1);

        jMenu4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/Master.png"))); // NOI18N
        jMenu4.setText("Data Master");

        jMenuItem6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/mn_pasien.png"))); // NOI18N
        jMenuItem6.setText("Data Pasien");
        jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem6ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem6);

        jMenuItem7.setText("Pasien Sudah Bayar");
        jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem7ActionPerformed(evt);
            }
        });
        jMenu4.add(jMenuItem7);

        jMenuBar1.add(jMenu4);

        jMenu2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/Modul.png"))); // NOI18N
        jMenu2.setText("Transaksi");

        jMenuItem8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/mn_tagihan.jpg"))); // NOI18N
        jMenuItem8.setText("Tagihan Pasien");
        jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem8ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem8);

        jMenuItem9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/mn_transaksi.png"))); // NOI18N
        jMenuItem9.setText("Pembayaran Pasien");
        jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem9ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem9);

        jMenuBar1.add(jMenu2);

        jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/Help.png"))); // NOI18N
        jMenu3.setText("Bantuan");

        jMenuItem4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/mn_tentang.png"))); // NOI18N
        jMenuItem4.setText("Tentang Program");
        jMenu3.add(jMenuItem4);

        jMenuItem5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/SIMRS/Kasir/gambar/mn_bantuprgrm.png"))); // NOI18N
        jMenuItem5.setText("Bantuan Program");
        jMenu3.add(jMenuItem5);

        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);
    }// </editor-fold>//GEN-END:initComponents

    private void formWindowActivated(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowActivated
        Dimension layar = Toolkit.getDefaultToolkit().getScreenSize();
        this.setSize(layar);
    }//GEN-LAST:event_formWindowActivated

    private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem3ActionPerformed
    int jawab = JOptionPane.showConfirmDialog(this, "Anda yakin mau keluar ?" ,"Konfirmasi",JOptionPane.YES_NO_OPTION );
    if (jawab == JOptionPane.YES_OPTION){
        dispose();
        this.setVisible(false);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
        exit();
    }
    }//GEN-LAST:event_jMenuItem3ActionPerformed

    private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem6ActionPerformed
        frmDaftarPasienRumahSakit dtpasien = new frmDaftarPasienRumahSakit();
        dtpasien.setVisible(true);
    }//GEN-LAST:event_jMenuItem6ActionPerformed

    private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed
        frmDaftarPasienSudahBayar sdhbyr = new frmDaftarPasienSudahBayar();
        sdhbyr.setVisible(true);
        
    }//GEN-LAST:event_jMenuItem7ActionPerformed

    private void jMenuItem8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem8ActionPerformed
        frmDaftarSisaTagihanPasien tagih = new frmDaftarSisaTagihanPasien();
        tagih.setVisible(true);
    }//GEN-LAST:event_jMenuItem8ActionPerformed

    private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem9ActionPerformed
        frmPembayaranPasien pmbyaran = new frmPembayaranPasien();
        pmbyaran.setVisible(true);
    }//GEN-LAST:event_jMenuItem9ActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem4;
    private javax.swing.JMenuItem jMenuItem5;
    private javax.swing.JMenuItem jMenuItem6;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jMenuItem8;
    private javax.swing.JMenuItem jMenuItem9;
    private javax.swing.JPopupMenu.Separator jSeparator1;
    private SIMRS.Kasir.widget.PnlHome pnlHome1;
    // End of variables declaration//GEN-END:variables

}
